package com.effect.exception;


public class CustomizeException extends RuntimeException{

	private Integer code;

	public CustomizeException(Integer code, String message) {
		super(message);
		this.code = code;
	}

	public CustomizeException(ResultCode msgCodeEnum) {
		super(msgCodeEnum.getValue());
		this.code = msgCodeEnum.getCode();
	}

	Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}
}

